﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using LCA.Community.DAL.Model;

namespace LCA.Community.DAL.Interfaces
{
    /// <summary>
    /// The interface for votes repositories
    /// </summary>
    public interface IPostVotesRepository : IBaseRepository<PostVote>
    {
        int GetPostVotesCount(string postID);
        bool UserHasVotedPost(string userID, string postID);
        List<PostVote> GetPostVotesByPost(string postID);
        void DeleteAllPostVotesFromPost(string postID);
        List<PostVote> GetPostVotesByUser(string userID);
        void DeleteAllPostVotesFromUser(string userID);
    }
}
